import requests
#1.get请求一般都是

url = " http://127.0.0.1:5000/login"
data = {'username':"wwj",'"pwd':"123456"}
res = requests.get(url,params=data)
print(res.status_code)
print(res.headers)
print(res.text)

#带请求头1
headers = {"user-agent":"huawei p30"}
#带请求头的请求
res = requests.get(url,params = data,headers = headers)